/**
  ******************************************************************************
  * @file    app_boot.h
  * @author  Feirui_Joe
  * @version V0.1
  * @date    07/26/2010
  * @brief   configuration for application
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 

#ifndef  __APP_BOOT_H__
#define  __APP_BOOT_H__

#ifdef __cplusplus
 extern "C" {
#endif



/**
  * @brief GLOBALS RAM definition
  */
#ifdef   APP_GLOBALS_BOOT
#define  APP_EXT_BOOT
#else
#define  APP_EXT_BOOT  extern
#endif

/**
  * @brief  RAM clear.
  */
#define SysRAMClear_StartAdr                  0x20004B68            /* RAM Clear Start Address       */
#define SysRAMClear_EndAdr                    0x2000C000            /* RAM Clear End Address         */

#define NVIC_PriorityGroupx                   NVIC_PriorityGroup_2

#ifdef OptAppAdrOffset_3000H
  #define ApplicationAdrOffset   0x3000
#elif defined (OptAppAdrOffset_4000H)
  #define ApplicationAdrOffset   0x4000
#elif defined (OptAppAdrOffset_5000H)
  #define ApplicationAdrOffset   0x5000
#elif defined (OptAppAdrOffset_6000H)
  #define ApplicationAdrOffset   0x6000
#else
  #define ApplicationAdrOffset   0x0000
#endif



#ifdef __cplusplus
}
#endif


#endif   /*   __APP_BOOT_H__   */
